package com.ssm.hyl.server;

import com.hyl.ssm.mapper.RoleMapper;
import org.apache.ibatis.session.SqlSession;

/**
 * LogService
 *
 * @author hyl
 * @date 2024-12-13
 */
public class LogService {

    public int  logShow(){
            //逻辑
            int a = 1, b = 0;
            int ret = a / b;
            return ret;
    }

    public void logShow2(){
            //逻辑
            int a = 10, b = 5;
            int ret = a / b;

    }

    public void show2(){
        try {
            //逻辑
            int a = 20, b = 5;
            int ret = a / b;
        }catch (ArithmeticException e){
        }finally {
        }
    }

    public int update(SqlSession sqlSession){
        RoleMapper roleMapper = sqlSession.getMapper(RoleMapper.class);
        roleMapper.selectRoleById(1);
        return 0;
    }

    public int updateDel(SqlSession sqlSession){
        return 0;
    }
}
